package ooday02;
/** 继承的演示 */
public class ExtendsTest {
    public static void main(String[] args) {
    //学生
    Student zs = new Student("张三","男",18,"吉林","001","jsd2302");

    zs.eat();
    zs.sleep();
    zs.sayHi();
    zs.study();

    //老师
    Teacher ls = new Teacher("李四","男",29,"黑龙江",9000);

    ls.sayHi();
    ls.sleep();
    ls.teach();

    //医生
    Doctoe zq = new Doctoe("赵七","女",34,"北京","主治医师");

    zq.sayHi();
    zq.sleep();
    zq.cut();
    }
}
